package javabase.schoolwork.day5_24;

/**
 * @author fance
 * @date 2018/5/24 20:06
 */
public class TestTriAngle {
    public static void main(String[] args) {
        TriAngle triAngle = new TriAngle();
        triAngle.setBase(1);
        triAngle.setHeight(2);
        System.out.println(triAngle);
        System.out.println(triAngle.calArea());
        System.out.println(triAngle.getBase() * triAngle.getHeight());
    }
}
